package com.yanq.liancar.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanq.liancar.R;
import com.yanq.liancar.bean.ExchangeVoucherBean;

import java.util.List;

public class ExchangeVoucherAdapter  extends BaseQuickAdapter<ExchangeVoucherBean.DataBean,BaseViewHolder>{

    public ExchangeVoucherAdapter(int layoutResId, @Nullable List<ExchangeVoucherBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ExchangeVoucherBean.DataBean item) {
        helper.setText(R.id.tv_name,item.getExchange_num())
                .setText(R.id.tv_content,"兑换服务包")
                .setText(R.id.tv_time,item.getExchange_time());
    }
}
